| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | Mivhak.component('notifier', { |
||
| 35 | dismissibleNotification: function(html, onclick) |
||
| 36 | { |
||
| 37 | var $this = this, |
||
| 38 | $times = $('<div>',{class:'mivhak-times',html:'×'}).click(function(){$this.hide();}); |
||
| 39 | this.notification(html); |
||
| 40 | this.$el.append($times).addClass('mivhak-dismissible').click(function(e){ |
||
| 41 | if(typeof onclick !== 'undefined') |
||
| 42 | onclick.call(null, e); |
||
| 43 | }); |
||
| 44 | }, |
||
| 45 | |||
| 66 | }); |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.